<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .keylist {
            display: none;
        }
    </style>
</head>

<body>
    <div class="main">
        <input type="text" placeholder="输入关键字" class="keyword">
        <div class="keylist">
            
            <div>javascript面试题</div>
            <div>java学习路线</div>
            <div>java是前端还是后端</div>
            <div>jar</div>
        </div>
    </div>
    <script>
        // 实现功能当在文本框中输入j/ja 在keylist中显示出所有的 当输入的是javascript 显示javascript面试题
        var data = ['javascript面试题', 'java学习路线', 'java是前端还是后端', 'jar'];
    </script>


</body>

</html>